﻿using Estsh.Core.Base;
using Estsh.Core.Model.Extend.Models;
using Estsh.Core.Models;
using Estsh.Core.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Estsh.Core.Wms.IRepositories
{
    public interface IOpenControlRepository: IBaseRepository<BaseEntity>
    {
        public List<Syspdline_Extend> GetPdlineList(int loginid);
        public List<SysSpotCheck> GetSpotChecks(int id);
        public List<MesWorkOrder> GetWorkOrder(int id);
        public List<MesWorkOrder_Extend> GetPartNoStatus(int id);
        public int UpdateCheckStatus(int id,string time);
        public List<MesWorkOrder_Extend> GetOrders(int id);
        public List<SysOrderCheck> GetOrderChecks(int id);
        public bool AddOrderCheck(int orderid,int pdlineid);
        public int UpdateCheckStatus(int orderid, int checkid,int status,int pdlineid,int loginid);
        public List<SysOrderCheck> GetSysOrderChecks(string orderid);
        public int UpdateAgain(int orderid,int pdlineid,string loginid);
        public int UpdateWorkOrder(int orderid,int pdlineid);
        public List<MesWorkOrder_Extend> GetCheckFinish(int pdlineid);
        public List<SysSpotCheckReason> GetCheckReasons(int checkid);
        public int AddReasonLog(int reasonid,int checkid,string loginid);
        public int GetPdlineMaxCount(int pdlineid,int orderid);
        public List<MesWorkOrder_Extend> GetCheckOk(int orderid);
    }
}
